import req from "@/utils/request.js";
// 获取运动管理师信息
export const getWorkInfo = () => {
	return req({
		url: `dashboard/myInfo`,
		method: "get"
	})
}
/* 
	新增医生
 */
export const addDoctor = data => {
	return req({
		url: `dashboard/addDoctor`,
		method: "POST",
		data
	})
}
/* 
	编辑医生
 */
export const editDoctor = data => {
	return req({
		url: `dashboard/editDoctor`,
		method: "POST",
		data
	})
}
/* 
	医生列表
 */
export const doctorList = () => {
	return req({
		url: `dashboard/doctor/list`,
		method: "get",
	})
}
/* 
	删除医生
 */
export const deleteDoctor = data => {
	return req({
		url: `dashboard/deleteDoctor`,
		method: "POST",
		data
	})
}
/* 
	医生详情
 */
export const getDoctor = data => {
	return req({
		url: `dashboard/doctorDetail`,
		method: "get",
		data
	})
}
/* 患者列表 */
export const patientList = data => {
	return req({
		url: `dashboard/doctor/patientList`,
		method: "GET",
		data
	})
}
// 移除患者
export const removeUser = data => {
	return req({
		url: `dashboard/deleteManageUser`,
		method: "POST",
		data
	})
}